﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetGridViewByConditionForm.aspx.cs"
    Inherits="EcSalseManage.EcSalse.GetGridViewByConditionForm" %>


    <form id="form2" runat="server">

    <div id="container">
        <asp:GridView ID="gvwReport_Commission" runat="server" AutoGenerateColumns="false"
            DataKeyNames="Report_Commission_ID" ShowFooter="True"  
            OnPreRender="gvwReport_Commission_PreRender" 
            onrowcancelingedit="gvwReport_Commission_RowCancelingEdit" 
            onrowcommand="gvwReport_Commission_RowCommand" 
            onrowdatabound="gvwReport_Commission_RowDataBound" 
            onrowdeleting="gvwReport_Commission_RowDeleting" 
            onrowediting="gvwReport_Commission_RowEditing" 
            onrowupdating="gvwReport_Commission_RowUpdating" 
            EnableViewState="False">
            <HeaderStyle Font-Bold="True" ForeColor="#FFFFCC" BackColor="#990000"></HeaderStyle>
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        发票编号</HeaderTemplate>
                    <ItemTemplate>
                        <div id="Report_Commission_InvoiceNO<%# Eval("Report_Commission_ID") %>">
                            <asp:Label ID="lblReport_Commission_InvoiceNO" runat="server" Text='<%# Eval("Report_Commission_InvoiceNO") %>'></asp:Label>
                        </div>
                    </ItemTemplate>
                    <FooterTemplate>
                        <input id="NewReport_Commission_InvoiceNO" type="text" />
                    </FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        金额</HeaderTemplate>
                    <ItemTemplate>
                        <div id="Report_Commission_Money<%# Eval("Report_Commission_ID") %>">
                            <asp:Label ID="lblReport_Commission_Money" runat="server" Text='<%# Eval("Report_Commission_Money") %>'></asp:Label>
                        </div>
                    </ItemTemplate>
                    <FooterTemplate>
                      <input id="NewReport_Commission_Money" type="text" />
                    </FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="管理" ShowHeader="False">
                    <ItemTemplate>
                         <div id='Manage<%# Eval("Report_Commission_ID") %>'>
                            <a href="javascript:changeView('<%# Eval("Report_Commission_ID") %>','<%# Eval("Report_Commission_InvoiceNO") %>','<%# Eval("Report_Commission_Money") %>')">
                                编辑</a>&nbsp; 
                            <a href="javascript:getData('delete','<%# Eval("Report_Commission_ID") %>')">删除</a>
                        </div>
                    </ItemTemplate>
                    <FooterTemplate>
                        <input id="btnAdd" type="button" value="添加" onclick="javascript:getData('add','');" />
                    </FooterTemplate>
                </asp:TemplateField>
            </Columns>
            
        </asp:GridView>
</div>
    </form>

